<#include "/view/common/command/para.html">
<div class="zs-ibox" id="modification">
	<table class="zs-form-tab" width="100%" >
		<tbody>
			<tr>
				<td style="width:5%">
					数据类型:
				</td>
				<td style="width:20%;text-align: left">
					<com-selecter  style="float:left"  ng-model="dataSource" data='dataSourceSelect'></com-selecter>
				</td>
				<td ng-show="dataSource=='3' || dataSource=='6'" style="width:30%">
					<label>日期:</label> &nbsp; 
					<ag-Datebox class="zs-input" ng-model="hourDate"></ag-Datebox> 
				</td>
				<td ng-show="dataSource=='4'" style="width:30%">
					<div>
						<label style="float:left;margin-right: 10px">日期:</label>
						<div style="float:left;margin-right: 10px"><ag-Combobox style="width:120px" dynamic="false" ng-model="dayYear" data='yearList' /></div>
				    	<div style="float:left;margin-right: 10px"><ag-Combobox style="width:120px" dynamic="false" ng-model="dayMonth" data='monthlist' /></div>
					</div>
				</td>
				<td style="width:50%;text-align: left">
					<input type="button" value="查询" class="zs-btn" ng-click="getReport()">
					<input type="button" value="修改" class="zs-btn" ng-click="modifyEvent()">
				</td>
			</tr>
		</tbody>
	</table>
   <div id="lb" class="table" style="overflow: auto;" ng-style="{height:(Map_H-100)+'px'}">
			<div ng-style="{'width':(Map_W-40) +'px'}" class="tableHead">
				<table class="zs-data-tab" ng-style="{'width':'200px'}" style="float:left">
			        <thead>
						<tr>
						    <th class="head" style="width:50px;max-width:50px;"><input type="checkbox" id="allcheck"  ng-click="allCheck()" />全选</th>
							<th class="head" style="width: 150px;max-width:150px">数据时间</th>
						</tr>
						<tr>
							<td></td>
							<th class="head" style="width: 200px;max-width:200px">范围</th>
						</tr>
					</thead>
		        </table>
		        <div ng-style="{'width':(Map_W-250) +'px','overflow':'hidden','float':'left'}" id="dataHeadContent">
			        <table class="zs-data-tab" ng-style="{'width':((100 * parmToCheckList.length+100) < (Map_W - 250) ?(Map_W - 250):(100 * parmToCheckList.length+200))+'px'}" style="float:left">
				        <thead>
							<tr>
								<th class="head" ng-repeat="parm in parmToCheckList" style="width: 100px;min-width:100px;overflow: hidden; white-space:nowrap;">
									<span ng-bind="parm.parmName_text"></span>
								</th>
								<th style="width: 100px;min-width:100px;overflow: hidden; white-space:nowrap;">
									<span >数据来源</span>
								</th>
							</tr>
							<tr>
								<th class="head" ng-repeat="parm in limitList track by $index" style="width: 80px;min-width:80px;overflow: hidden; white-space:nowrap;font-size: smaller;color: #555555;">
									<span ng-bind="parm"></span>
								</th>
								<th></th>
							</tr>
						</thead>
			        </table>
		        </div>
			</div>
			 <div class="tableData">
				 <div id="datatimeCloumn" ng-style="{'height':(Map_H-165) + 'px','overflow':'hidden','width':'200px','min-width':'200px'}" style="float:left">
					 <table class="zs-data-tab" style="width:100%">
						<tbody>
							<tr ng-repeat="curRow in data.data"
								class="{{ isDoubleNum($index) ? 'even':'' }}" id="allCheck">
								<td class="center"><input type="checkbox" name="dataModifiItem" id="dataModifiItem{{$index}}"  ng-click="itemCheck(curRow,$index)" /> </td>
								<td class="center" style="width: 200px;">
								<label
									ng-bind="curRow['TEMPDATE']|limitTo:numLimit"></label>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div ng-style="{'height':(Map_H-161) + 'px','overflow':'auto','width':(Map_W - 223)+'px'}" style="float:left" id="dataTableContent">
					<table class="zs-data-tab" ng-style="{'width':((100 * parmToCheckList.length+100) < (Map_W - 240) ?(Map_W - 240):(100 * parmToCheckList.length+200))+'px'}" style="float:left">
						<tbody>
							<tr  ng-repeat="curRow in data.data" class="{{ isDoubleNum($index) ? 'even':'' }}" ng-click="">
								<td class="center" ng-repeat="parm in parmToCheckList" style="width: 100px;min-width:100px">
									<label ng-bind="curRow[parm.attrName]" ></label>
									<label class="datared" ng-if="data.limitData['UP'+parm.attrName] != null && curRow[parm.attrName] > data.limitData['UP'+parm.attrName]">
										&gt;{{data.limitData['UP'+parm.attrName]}}
									</label>
				                </td>
				                <td class="center" ng-bind="curRow['DATA_FROM_DESC']" style="width: 100px;min-width:100px"></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
	</div>
    
    
    <div itfreer-Window id="modifyData" title="修约" width='800' height='450'><#include "${viewDir}/sw/dataModification/modify.html"></div>
</div>

